import 'package:bruno/bruno.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:yt_devops/resources/str_res_keys.dart';

import '../../../../../components/gaps.dart';
import '../../../../../components/yt_text_style.dart';
import '../../../../../styles/styles.dart';

class PictureHeaderWidget extends StatelessWidget {
  String? titleString;
  String? decString;
  final double widgetHeight;
  final double titleFontSize;

  PictureHeaderWidget(
      {this.titleString,
      this.decString,
      this.widgetHeight = 50,
      this.titleFontSize = 16,
      Key? key})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    titleString = titleString ?? ResKey.siteBaseInfoSiteLogo.tr;
    decString = decString ?? ResKey.siteBaseInfoLimitPictures1.tr;

    return Container(
      height: widgetHeight,
      color: Colors.white,
      child: Row(
        // ResKey.siteDeviceAccessDevicePicture
        children: [
          // Gaps.hGap16,
          Text(
            titleString!,
            style: ytTextStyle(
                fontSize: titleFontSize, fontWeight: FontWeight.w500),
          ),
          Text(
            decString!,
            style: ytTextStyle(
                fontSize: 12,
                fontWeight: FontWeight.normal,
                color: Colour.lightTextColor),
          ),
          Visibility(child: Container()),
        ],
      ),
    );
  }
}
